﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using ThongTin;

namespace DuLieu
{
   public class HeDaoTao_DL
    {
        KetNoi_DL ketnoi = new KetNoi_DL();
        public DataTable DanhSachHeDaoTao ()
        {
           return ketnoi.LayDuLieu("DanhSachHeDaoTao");
        }
         //thêm hệ đào tạo

        public int ThemHeDaoTao(HeDaoTao_TT DT)
        {
            int Nparameter = 2;
            string[] name = new string[Nparameter];
            object[] value = new object[Nparameter];
            name[0] = "@MaHe"; value[0] = DT.MaHe;
            name[1] = "@TenHe"; value[1] = DT.TenHe;
            return ketnoi.CapNhat("ThemHeDaoTao", name, value, Nparameter);
        }

    }
}
